import request from '@/utils/request'
import { getToken } from '@/utils/auth'

export function fetchList(data) {
  return request({
    url: '/account/getPageList',
    method: 'post',
    params: getToken(),
    data
  })
}

export function saveUser(data) {
  return request({
    url: '/account/save',
    method: 'post',
    params: getToken(),
    data
  })
}
